<form action="{:sysuri()}" data-table-id="TagsData" class="layui-form layui-card" data-auto="true" method="post">
    <div class="layui-card-body padding-left-40">

        <label class="layui-form-item relative block">
            <span class="help-label"><b>问题</b>problem</span>
            <input class="layui-input" name="problem" placeholder="请输入问题" required value="{$vo.problem|default=''}"/>
            <span class="help-block"><b>必填，</b>问题</span>
        </label>

        <label class="layui-form-item block relative">
            <span class="help-label label-required-prev"><b>问题分类</b>class_id</span>
            <select class="layui-select" lay-search name="class_id" lay-search>
                {foreach $problem_class as $problem_class_v}{if !empty($vo.class_id) and $problem_class_v.id == $vo.class_id}
                <option selected value="{$problem_class_v.id}">{$problem_class_v.problem_class}</option>
                {else}
                <option value="{$problem_class_v.id}">{$problem_class_v.problem_class}</option>
                {/if}{/foreach}
            </select>
        </label>


        <label class="layui-form-item relative block">
            <span class="help-label"><b>答案</b>answer</span>
            <textarea name="answer" required lay-verify="required" placeholder="请输入答案" class="layui-textarea">{$vo.answer|default=''}</textarea>
        </label>

        <label class="layui-form-item relative block">
            <span class="help-label"><b>是否热门</b></span>
            {if isset($vo.is_hot ) and $vo.is_hot == 1}
            <input type="radio" name="is_hot" value="1" title="是" checked>
            {else}
            <input type="radio" name="is_hot" value="1" title="是" >
            {/if}

            {if isset($vo.is_hot ) and $vo.is_hot == 0}
            <input type="radio" name="is_hot" value="0" title="否" checked>
            {else}
            <input type="radio" name="is_hot" value="0" title="否">
            {/if}

        </label>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close type='button' data-confirm="确定要取消修改吗？">取消编辑</button>
    </div>
</form>

<script>


</script>